<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content animated fadeInRight">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox-content">
					<form class="form-horizontal m-t" id="signupForm">
					        <input id="dictId" name="dictId" type="hidden"
							th:value="${dictionary.dictId}">
						    <div class="form-group">
								<label class="col-sm-3 control-label">字典代码：</label>
								<div class="col-sm-8">
									<input id="dictCode" th:value="${dictionary.dictCode}" name="dictCode" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">字典名称：</label>
								<div class="col-sm-8">
									<input id="dictName" th:value="${dictionary.dictName}" name="dictName" class="form-control"
										type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">字典类型编码：</label>
								<div class="col-sm-8">
									<input id="dictTypeCode" th:value="${dictionary.dictTypeCode}" name="dictTypeCode" class="form-control"
										type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">字典类型名称：</label>
								<div class="col-sm-8">
									<input id="dictTypeName" th:value="${dictionary.dictTypeName}" name="dictTypeName" class="form-control"
										type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">备注：</label>
								<div class="col-sm-8">
									<input id="remarks" th:value="${dictionary.remarks}" name="remarks" class="form-control"
										type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">状态:</label>
								<div class="col-sm-8">
									<label class="radio-inline"> <input type="radio"
										th:field="*{dictionary.flag}" name="flag" value="1" /> 启用
									</label> <label class="radio-inline"> <input type="radio"
										th:field="*{dictionary.flag}" name="flag" value="0" /> 禁用
									</label>
								</div>
							</div>
							<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<input id="submit" class="btn btn-primary" name="submit" type="submit" value="提交" >
								</div>
							</div>
					</form>
				</div>
				</div>
			</div>
		</div>
	<div th:include="include::footer"></div>
	<script type="text/javascript" src="/js/appjs/common/dictionary/edit.js">
	</script>
	<!-- <script src="/js/plugins/suggest/bootstrap-suggest.min.js"></script> -->
</body>
<script>

/* $(function() {
    $("#userName").bsSuggest({
        url: '/sys/drugProducer/getProducerName?d='+new Date().getTime(),
		//d='+new Date().getTime()主要是为了让每次输入的值都及时加载,不用也行
        /*effectiveFields: ["userName", "shortAccount"],
        searchFields: [ "shortAccount"],*/
/*        data: {
        	userName: $("#userName").val()
        }, */
  /*       effectiveFieldsAlias:{userName: "分类名称名称"},//有效字段别名
        allowNoKeyword: false,           // 是否允许无关键字时请求数据
        ignorecase: true,//忽略大小写 
        showHeader: false,//显示 header
        showBtn: false,     //不显示下拉按钮
        delayUntilKeyup: true, //获取数据的方式为 firstByUrl 时，延迟到有输入/获取到焦点时才请求数据
        idField: "userName",
        keyField: "userName"
    }).on('onDataRequestSuccess', function (e, result) {
        console.log('onDataRequestSuccess: ', result);
    }).on('onSetSelectValue', function (e, keyword, data) {
        console.log('onSetSelectValue: ', keyword, data);
    }).on('onUnsetSelectValue', function () {
        console.log("onUnsetSelectValue");
    });
});  */

</script>
</html>
